package com.bestcem.xm.user.service.dto.group;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 设置显示字段
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/2/11 10:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class DisplayDTO implements Serializable {
    /**
     * 层级Id
     */
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "层级Id不正确")
    private String levelId;

    /**
     * 组织负责人是否显示
     */
    private Boolean admin;

    /**
     * 组织编码是否显示
     */
    private Boolean code;

    /**
     * 组织名称是否显示
     */
    private Boolean title;
}
